package org.flycloud.web.decoupling;

public class ServicePoint extends HttpRequest {

	public ServicePoint() {
	}

	public ServicePoint(String point) {
		this.setPoint(point);
	}

	public void open(String token) {
		this.get("/sso/ri?_token=" + token);
	}

	public void close() {
		this.get("/sso/ro");
		super.close();
	}

	public static void main(String[] args) {
		ServicePoint hcu = new ServicePoint("http://localhost:8082/platform");
		hcu.open("f0d2ee30-3a0d-41d6-9361-258a7b2e523c");
		hcu.get("/menutree");
		hcu.close();
	}
}
